"""web URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from . import views

urlpatterns=[
    # 首页
    url(r'^$',views.index,name='myhome_index'),
    # 列表
    url(r'^goods/list/$',views.goodslist,name='myhome_goodslist'),
    # 详情
    url(r'^goods/info/$',views.goodsinfo,name='myhome_goodsinfo'),
    # 购物车添加
    url(r'^cart/add/$',views.cartadd,name='myhome_cartadd'),

    # 登录
    url(r'^login/$',views.login,name='myhome_login'),
    # 退出
    url(r'^logout/$',views.logout,name='myhome_logout'),
    # 注册
    url(r'^register/$',views.register,name='myhome_register'),
    # 检测手机号
    url(r'^checkphone/$',views.checkphone,name='myhome_checkphone'),
    # 发送验证码
    url(r'^sendmsg/$',views.sendmsg,name="myhome_sendmsg"),




]